$(function(){
	$("input[type=button]").click(function(){
		var proid=$("input[name='proid']").val();
		var proType=$("input[name='proType']").val();
		var proName=$("input[name='proName']").val();
		var proNum=$("input[name='proNum']").val();
		var phoneNum=$("input[name='phoneNum']").val();
		var proPrice=$("input[name='proPrice']").val();
		var proSumPrice=$("input[name='proSumPrice']").val();
		$.ajax({
			url:path+"/sellServlet",
			type:"post",
			data:{
				method:'sell',
				proid:proid,
				proType:proType,
				proName:proName,
				proNum:proNum,
				phoneNum:phoneNum,
				proPrice:proPrice,
				proSumPrice:proSumPrice,
			},
			dataType:"text",
			success:function(date){
				if(date){
					alert("销售成功！")
				}else{
					alert("销售失败！")
				}
			}
		})
	})
})